package pattern.command;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * 实现命令模式接口的动物类
 *
 * @author sun.ye
 * @since 2020-07-14 14:06
 */
@Slf4j
@Data
public class Animal implements SadCommand {
    private String name;

    @Override
    public void cry() {
       log.info(name + ": I'm sad!");
    }
}